package com.yunzhong.appointment.report.controller;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yunzhong.appointment.report.service.IPatientAppointmentArea;


/**
 * 患者预约地址统计
 * @author
 *
 */
@Controller
public class PatientAppointmentAreaController {

	@Autowired
	private IPatientAppointmentArea service;
	
	
	/**
	 * 查询患者地址
	 * @param
	 * @param
	 * @return
	 */
	@RequestMapping("/forms/pagePatientAddress")
	public String pagePatientAddress(){

		return "report/report/Area";
	}

	/**
	 * 地区统计
	 * @return
	 */
	@RequestMapping("/forms/queryArea")
	@ResponseBody
	public List<JSONObject> queryArea(String data) {
		return service.queryArea(data);
	}


}
